﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="UserHome.aspx.cs" Inherits="Pages_UserHome" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
 <center>
            <table width="60%">
            <tr runat="server" id="trMessage" visible="false">
                                 <td colspan="2">
                                <div class="alert"> Profile Updated Successfully.</div>
                                 </td>
                                 </tr>                
                                    <tr runat="server" id="trError" visible="false">
                                 <td colspan="2">
                                <div class="error">Error Occured While Updating Record.</div>
                                 </td>
                                 </tr> 
                <tr>
                    <td align="center" style="font-weight: bold; font-size: 0.9em; color: white;
                        background-color: #5d7b9d">
                        Update Profile
                    </td>
                </tr>
                <tr>
                <td>
                 <fieldset>
                <legend>General Information</legend>
                <center>
                  <table border="0" cellpadding="1" cellspacing="2" width="60%" >
                <tr>
                    <td align="left">
                        User Name
                    </td>
                    <td align="left">
                        <b>
                            <asp:Label ID="lblUserName" runat="server"></asp:Label></b>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        Full Name:</td>
                    <td align="left">
                        <asp:TextBox ID="txtFullName" runat="server" Font-Size="0.8em" Width="90%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        Address:</td>
                    <td align="left">
                        <asp:TextBox ID="txtAddress" runat="server" TextMode="multiline" Width="91%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right"  style="text-align: center" colspan="2">
                        <asp:Button ID="btnUpdate" SkinID="DefaultButton" runat="server" Text="Update" ValidationGroup="Pro"
                            OnClick="Update" />
                        <asp:Button ID="btnClear" SkinID="DefaultButton" runat="server" Text="Reset" ValidationGroup="Rest" />
                    </td>
                </tr>
            </table>
            </center>
            </fieldset>
                
                </td>
                
                </tr>
                <tr>
                <td>
                <fieldset>
                <legend>
                Passowrd Setting
                </legend>
                <center>
                <table width="70%">
                
                <tr>
                <td align="left">
                        Current Password:</td>
                    <td align="left" >
                        <asp:TextBox ID="txtCurrPwd" TextMode="password" runat="server" Font-Size="0.8em" Width="90%"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" runat="server" ErrorMessage="Current Password is required" ControlToValidate="txtCurrPwd">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                <td align="left">
                        New Password:</td>
                    <td align="left">
                        <asp:TextBox ID="txtNewPwd" TextMode="password" runat="server" Font-Size="0.8em" Width="90%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="New Password is Required" ControlToValidate="txtNewPwd">*</asp:RequiredFieldValidator></td>
                </tr>
                 <tr>
                <td align="left">
                       Verify Password:</td>
                    <td align="left">
                        <asp:TextBox ID="txtVerifyPwd" TextMode="password" runat="server" Font-Size="0.8em" Width="90%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please Verify the password" ControlToValidate="txtVerifyPwd">*</asp:RequiredFieldValidator> 
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Password do not matches" ControlToCompare="txtNewPwd" ControlToValidate="txtVerifyPwd">*</asp:CompareValidator>
                        </td>
                </tr>
                 <tr>
                    <td align="right"  style="text-align: center" colspan="2">
                        <asp:Button ID="btnUpdatePwd" SkinID="DefaultButton" runat="server" Text="Change Password" OnClick="btnUpdatePwd_Click" />
                        <asp:Button ID="btnRestePwd" SkinID="DefaultButton" runat="server" Text="Reset" ValidationGroup="Rest" />
                                           </td>
                </tr>
                </table>
                </center>
                </fieldset>
                
                </td>
                </tr>
                
            </table>  </center>
          <asp:ValidationSummary ID="valSum" runat="server" ShowSummary="true" />
</asp:Content>

